export interface RespenseData {
  code: number
  message: string
}

export interface GetListParams {
  pageNum: number
  pageSize: number
  keywords: string
  serviceTypeId: string
  serviceTypeId2: string
  technicalId: string
  province: string
  dataOrigin: string
  logicStatus: number
}

export interface ListData {
  createdAt: string
  deletedAt: string | null
  id: string
  name: string
  updatedAt: string
}

export interface GetListResponse extends RespenseData {
  data: {
    list: ListData[]
  }
}

export interface LadderlistData {
  id: string
  name: string
  children: LadderlistData[]
}
export interface GetLadderRespenseDate extends RespenseData {
  data: LadderlistData[]
}

export interface DataOrigin {
  id: number
  name: string
  key: string
}

export type Province = string[]

export interface ServiceData {
  avatarUrl: string
  avgScore: number
  description: string
  formId: string
  id: string
  istopAt: null
  orgId: string
  orgName: string
  platformScore: number
  serviceTypeId: string
  serviceTypeName: string
  title: string
  totalDeal: number
  userId: string
}

export interface GetServiceListResponse extends RespenseData {
  data: {
    currentPage: number
    lastPage: number
    list: ServiceData[]
    perPage: number
    total: number
  }
}
